<#if r?exists>1<#else>0</#if>